import request from '../../utils/request';

export const fetchPageList = (query) => {
    return request({
        url: '/media/video/list/page',
        method: 'post',
        data: query
    })
}

export const menuList = (query) => {
    return request({
        url: '/media/host/menus',
        method: 'post',
        data: query
    })
}

export const saveVideo = (query) => {
    return request({
        url: '/media/video/list/add',
        method: 'post',
        data: query
    })
}

export const editVideo = (query) => {
    return request({
        url: '/media/video/list/edit',
        method: 'post',
        data: query
    })
}

export const deleteVideo = (query) => {
    return request({
        url: '/media/video/list/delete',
        method: 'post',
        data: query
    })
}
